//
//  ReplyViewController.m
//  YL8G
//
//  Created by gzty1 on 12-8-17.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "ReplyViewController.h"
#import "PostBaseView.h"

@interface ReplyViewController ()

@end

@implementation ReplyViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

-(void)loadView
{
    [super loadView];
    
    navRightButton_=nil;
    
    //修改标题
    [super setNavigationTitle:@"回复"
                             textColor:[UIColor blackColor]
                              fontSize:15 
                           shadowColor:[UIColor whiteColor]
                          shadowHeight:2];
    
    //nav left
	UIImage* image=[[UIImage imageNamed:@"bar_button1.png"] stretchableImageWithLeftCapWidth:20 topCapHeight:0];
	[super setNavigationLeftButtonWithTitle:nil 
                                          titleColor:nil
                                       normalBgImage:image 
                                 hightlightedBgImage:nil 
                                              target:self 
                                              action:@selector(dismissModalViewControllerAnimated) offset:CGPointMake(10, 2)];
	
	//nav right
	image=[[UIImage imageNamed:@"bar_button2.png"] stretchableImageWithLeftCapWidth:20 topCapHeight:0];
	[super setNavigationRightButtonWithTitle:nil 
                                           titleColor:nil
                                        normalBgImage:image 
                                  hightlightedBgImage:nil 
                                               target:self 
                                               action:@selector(send) offset:CGPointMake(-5, 2)];
    
    //隐藏照相
    [currentView_ hidePhotoView];
    [currentView_ hideToolBar];
    
    //背景色
    currentView_.textView.backgroundColor=[UIColor colorWithHexString:@"eaeaea"];
}

-(void)showProgressView
{
    [DialogUtil showModalWaitingViewWithMessage:@""];
}

-(void)showProgressViewWithSectionCount:(int)sectionCount
{
    [self showProgressView];
}

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view.
}

- (void)viewDidUnload
{
    [super viewDidUnload];
    // Release any retained subviews of the main view.
}

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}

-(NSString*)alertStringForPostSuccess
{
    return @"您的回复已经成功";
}
-(NSString*)alertStringForPostFailed
{
    return @"网络链接不成功，请重试";
}

@end
